<?php $url = new Zend_Controller_Action_Helper_Url();?>
<?php $this->nav = "<a href=\"".$url->simple('','')."\">首页</a> > <a href=\"".$url->simple('','teacher')."\">共同学习</a> > <a href=\"".$url->simple('','teacher')."\">教师学习</a> > 当前专题"?>

<?php if ($this->isCurrentTopic):?>
<div id="currenttopic_title">
	<div style="float:right; margin-top:6px;">&gt;&gt;&nbsp;&nbsp;
	<a href="<?= $url->simple('listtopic', 'teacher', null);?>">历史专题</a>
	&nbsp;&nbsp;&nbsp;Previous Themes</div>
</div>
<?php else :?> 
 <div id="lishitopic_title">
	<div style="float:right; margin-top:6px;">&gt;&gt;&nbsp;&nbsp;
	<a href="<?= $url->simple('listtopic', 'teacher', null);?>">历史专题</a>
	&nbsp;&nbsp;&nbsp;Previous Themes</div>
</div>
<?php endif;?>

<div id="currenttopic_backup">
	<table width="95%" style="margin: 0 15px;">
		<tr>
			<td height="26">
				<h4><?= $this->currentTopic->title; ?></h4>
			</td>
		</tr>
		<tr><td align="left"><?= $this->currentTopic->content; ?></td></tr>
	</table>
</div>

<div id="zhuantixuexi_title">
	<div style="float:right; margin-top:6px;">&gt;&gt;&nbsp;&nbsp;
	<a href="<?= $url->simple('publish', 'teacher', null);?>">我要发表</a>
	&nbsp;&nbsp;&nbsp;Submit</div>
</div>

<div id="zhuantixuexi_backup">
	<div class="w-listp">
		
        <div class="clearfix">
        	<table width="590" cellpadding="0" cellspacing="0" border="0">
        	<tr height="45" >
        		<td width="9" align="center"></td>
        		<td width="25" align="center"></td>
        		<td width="409" align="center"><h4>标题</h4>Topics</td>
        		<td width="100" align="center"><h4>点击</h4>Traffic Volume</td>
        		<td width="70" align="center"><h4>更新日期</h4>Updated on</td>
        		<td width="9"></td>
        	</tr>
        	<?php $i = 1;?>
			<? foreach($this->currentContents as $content):  ?>
        		<tr height="26" >
        			<td width="9" <?php if ($i%2):?>background="/skins/blues/images/gongtong/circular_l_1.gif"<?php endif;?>></td>
        			<td width="25" align="center" <?php if ($i%2):?>bgcolor="#ecf2f8"<?php endif;?>>◇</td>
        			<td width="409" align="left" <?php if ($i%2):?>bgcolor="#ecf2f8"<?php endif;?>  >
            			<?php if ($content->top):?><font color="#FF0000">[置顶]</font><?php endif;?>
            			<a href="<?=$this->url(array('contentId' => $content->id), 'teacher_content'); ?>">
		    			<?=$this->Escape($content->title); ?></a>
        			</td>
        			<td width="100" align="center" <?php if ($i%2):?>bgcolor="#ecf2f8"<?php endif;?>>
        				<?=$this->Escape($content->views); ?>
        			</td>
        			<td width="70"  align="center" <?php if ($i%2):?>bgcolor="#ecf2f8"<?php endif;?>>
        				<? $date = new Zend_Date($content->updatetime, Zend_Date::TIMESTAMP); ?>
        				<?= $date->toString("Y-M-d");?>
        			</td>
        			<td width="9" <?php if ($i%2):?>background="/skins/blues/images/gongtong/circular_r_1.gif"<?php endif;?>></td>
        		</tr>
        	<?php $this->topicId = $content->topicid;?>
	        <?php $i++;?>
	        <? endforeach; ?>
        	</table>
        </div>
        
        <div style="width:400px; margin-left:80px;">
        <?if ($this->currentContents instanceof Zend_Paginator): ?>
			<?= $this->paginationControl($this->currentContents, 'sliding', 'teacher/_paginator.phtml', array('topicId'=>$this->topicId))?>
		<?endif?>
        </div>
    </div>	
</div>